multiply all elements in an array python